package com.masterclient.app.modules.income.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.masterclient.app.R;
import com.masterclient.app.modules.income.model.ProfitsTotalPopupContentBean;

import java.util.List;

/**
 * @auther hjian
 * @date 2020/6/16.
 */
public class ProfitTotalDialogAdapter extends BaseQuickAdapter<ProfitsTotalPopupContentBean, BaseViewHolder> {

    public ProfitTotalDialogAdapter(List<ProfitsTotalPopupContentBean> data) {
        super(R.layout.item_profit_dialog, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ProfitsTotalPopupContentBean item) {
        helper.setText(R.id.item_profit_dialog_title, item.getTitle())
                .setGone(R.id.item_profit_dialog_recycler, false)
                .setGone(R.id.item_profit_dialog_desc, true)
                .setText(R.id.item_profit_dialog_desc, item.getContent());
    }
}
